package itdfq.ydd.Creational_Pattern.chouxianggongchang;

/**
 * @Author GocChin
 * @Date 2021/3/20 14:42
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("18031210136 杨丹丹");
        try {
            Kouhong kouhong;
            Mianmo mianmo;
            Factory factory;
            factory = (Factory) XMLUtil.getBean();
            kouhong=factory.productKouhong();
            mianmo=factory.productMianmo();
            kouhong.use();
            mianmo.useMianmo();
        }catch (Exception e){
            System.out.println(e.getMessage());
        }
    }
}
